package com.fresh.client;

import com.fresh.common.ResponseResult;
import com.fresh.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("auth")
@RequestMapping("/auth")
public interface AuthFeignClient {

    @PostMapping("/author")
    public ResponseResult<Boolean> author(@RequestBody User user);
}
